package com.powersystem.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrongji
 * @since 2019-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PS_LINE_INFO")
public class PsLineInfo extends Model<PsLineInfo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("LINECODE")
    private String linecode;

    @TableField("LINENAME")
    private String linename;

    @TableField("LINELENGTH")
    private Double linelength;

    @TableField("BACKLENGTH")
    private Double backlength;

    @TableField("PRODUCTDATE")
    private LocalDate productdate;

    @TableField("VOLTAGELEVEL")
    private String voltagelevel;

    @TableField("STARTPOLE")
    private Long startpole;

    @TableField("STARTPOLECODE")
    private String startpolecode;

    @TableField("ENDPOLE")
    private Long endpole;

    @TableField("ENDPOLECODE")
    private String endpolecode;

    @TableField("TOWERBASENUM")
    private Long towerbasenum;

    @TableField("MAINTENANCECOMPANY")
    private String maintenancecompany;

    @TableField("RUNNINGSTATUS")
    private Integer runningstatus;

    @TableField("RUNNINGSTATUSNAME")
    private String runningstatusname;

    @TableField("COMMON")
    private String common;

    @TableField("ISSTART")
    private Integer isstart;

    @TableField("CREATIONTIME")
    private LocalDateTime creationtime;

    @TableField("CREATEDBY")
    private String createdby;

    @TableField("LASTUPDATETIME")
    private LocalDateTime lastupdatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
